package com.peihongli.dao;

import com.peihongli.pojo.Person;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface PersonMapper {
    @Select("SELECT * FROM tb_person WHERE id=#{id}")
    @Results({@Result(column = "card",property = "card",one = @One(select = "com.peihongli.dao.IdCardMapper.selectIdCardById"))})
    Person selectPersonById(int id);
}
